package com.xjzd.mapstruct.demo;

public class Demo {

    public static void main(String[] args) {
        // Student student = new Student("Tom", 19);
        // StudentVO studentVO = StudentMapper.INSTANCE.toStudentVO(student);
        // System.out.println(studentVO);
        //
        // StudentVO2 studentVO2 = StudentMapper2.INSTANCE.toStudentVO(student);
        // System.out.println(studentVO2);
        //
        // Teacher teacher = new Teacher("诸葛亮", 30);
        // StudentVO2 studentVO3 = StudentMapper3.INSTANCE.toStudentVO(student,teacher);
        // System.out.println(studentVO3);
        //
        // Wife wife = new Wife("黄月英", 30);
        // Teacher2 teacher2 = new Teacher2("诸葛亮", 30, wife);
        // StudentVO2 studentVO4 = StudentMapper4.INSTANCE.toStudentVO(student, teacher2);
        // System.out.println(studentVO4);
        //
        //
        //
        // StudentMapper5.INSTANCE.toStudentVO(studentVO4, student);
        // System.out.println(studentVO4);
    }
}
